﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Inbox_List.aspx.cs" Inherits="TimKen.Web.Admin.Inbox.Inbox_List" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentLinkAction" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentTitle" runat="server">
    <%=GetLangString("MenuInbox")%>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
    <div class=" form-div">
        <img src="../images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
        <asp:CheckBox ID="chkIsRead" runat="server" AutoPostBack="true" OnCheckedChanged="chkIsRead_CheckedChanged" />
    </div>
    <div class="list-div">
        <asp:GridView ID="grdInbox" runat="server" AutoGenerateColumns="False" OnRowCommand="grdInbox_RowCommand"
            DataKeyNames="MsgID" CssClass="grid">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%#GetLangString("MessageTitle")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#GetMessageStatusPic(Eval("IsRead"))%>
                        <a href='Inbox_Info.aspx?MsgID=<%#Eval("MsgID")%>'>
                            <%#Eval("Title")%></a>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%#GetLangString("MessageFrom")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#Eval("FromID")%>
                    </ItemTemplate>
                    <HeaderStyle Width="80px" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%#GetLangString("MessageCreateDate")%>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <%#DataBinder.Eval(Container.DataItem, "CreateDate", "{0:yyyy-MM-dd}")%>
                    </ItemTemplate>
                    <HeaderStyle Width="80px" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <%=GetLangString("Operation") %>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="~/Admin/images/icon_drop.gif"
                            ToolTip='<%#GetLangString("Delete") %>' CommandArgument='<%#Eval("MsgID") %>'
                            CommandName="DeleteMessage" />
                    </ItemTemplate>
                    <HeaderStyle Width="60px" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <span class="errortext">
                    <%=GetLangString("InboxEmpty")%></span>
            </EmptyDataTemplate>
        </asp:GridView>
        <div class="pager-div">
            <ux:AspNetPager ID="AspNetPager1" runat="server" Width="100%" ShowPageIndexBox="Always"
                HorizontalAlign="right" EnableTheming="true" AlwaysShow="true" PageIndexBoxType="DropDownList"
                OnPageChanged="AspNetPager1_PageChanged" ImagePath="/images/" NavigationButtonType="Image"
                ButtonImageNameExtension="n" CpiButtonImageNameExtension="r" PagingButtonType="Image">
            </ux:AspNetPager>
        </div>
    </div>
</asp:Content>
